<template>
  <div>
    <BasicTable @register="registerTable" :searchInfo="searchInfo"></BasicTable>
  </div>
</template>
<script lang="ts" setup name="shopSelect">
import { BasicTable, useTable } from '@apps/antd-admin/src/components/Table';
import { page } from './api';
import { columns, searchFormSchema } from './data';
import { reactive } from 'vue';
const [registerTable, { reload,getSelectRowKeys }] = useTable({
  //主键字段
  api: page,
  columns,
  rowKey:"shopId",
  formConfig: {
    labelWidth: 180,
    labelCol: { span: 8 },
    schemas: searchFormSchema,
  },
  rowSelection: { type: 'checkbox' },
  useSearchForm: true,
  showTableSetting: false,
  bordered: true,
  showIndexColumn: true,
});

const searchInfo = reactive<Recordable>({});

function setSearchInfoProps() {
}
function getSelected(){
    return getSelectRowKeys();
}
defineExpose({
  setSearchInfoProps,
  getSelected
});
</script>
